package com.jinly.ryder.manage.service.model;

import com.jinly.ryder.common.service.model.SettingCategory;
import com.jinly.ryder.common.service.model.SettingRefKey;
import lombok.Data;

@Data
public class DeployGroup {

    /**
     * id
     */
    @SettingRefKey(category = SettingCategory.APP)
    private Integer id;

    /**
     * 部署组名称
     */
    private String name;

    /**
     * 部署组展示名称
     */
    private String showName;

    /**
     * 应用名称
     */
    private String appName;

    /**
     * 环境类型
     */
    private EnvType envType;

    /**
     * git 分支
     */
    private String gitBranch;

    /**
     * 部署申请ID
     */
    private Long applyId;

    /**
     * 部署状态，待发布，发布中
     */
    private DeployStatus deployStatus;

    private DeployGroupProp props;

    @Data
    public static class DeployGroupProp {
        /**
         * Java 启动参数
         */
        private String javaOpts;
    }


}
